package org.cmg.study.spring;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * @author CMG
 * @version 1.0
 * @cLassName UserController
 * @description
 * @date 2021/9/1 9:52
 **/
@Controller("userController")
public class UserController {
    @Resource(name = "userService")
    private IUserService userService;

    public IUserService getUserService() {
        return userService;
    }

    public void setUserService(IUserService userService) {
        this.userService = userService;
    }

    public void outContent(){
        userService.outContent();
        System.out.println("专注于分享优质编程教程");
    }
}
